package cn.edu.sdjzu.xg.eagle.entity;


public class Teacher {
    private  Department department;
    private long id;
    private String name;
    private int age;
    private String no;

    public Teacher(long id, String name, int age,String no) {
        super();
        this.id = id;
        this.name = name;
        this.age = age;
        this.no = no;


    }
    public Teacher( Long id,String name,Department department) {
        super();
        this.id = id;
        this.name = name;
        this.department = department;
    }
    public Teacher(String name,String no,long id) {
        super();
        this.name = name;
        this.no = no;
        this.id = id;

    }




    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public String getNo() {
        return no;
    }
    public void setNo(String no) {
        this.no = no;
    }
    public String toString(){
        final String TAB = " ";
        String retValue = "";
        retValue = "Teacher("
                + super.toString() + TAB
                +"id=" + this.id + TAB
                +"name=" + this.name+TAB
                +"age=" + this.age + TAB
                +"no=" + this.no + TAB
                +")";
        return retValue;
    }


}